package com.hula.onion.book.server.spider.platforms.itouzi;

import com.hula.onion.book.server.common.LoginForm;
import com.hula.onion.book.server.model.AccountInfo;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by work on 2018/1/22.
 */
@Component
public class ITouZiSpiderHelper {

    public Map<String, Object> installRequestParams(LoginForm loginForm) {
        Map<String, Object> map = new HashMap<>(2);
        map.put("username", loginForm.getUserName());
        map.put("password", loginForm.getPassword());
        map.put("valicode", "");
        map.put("remember_me", "1");
        return map;
    }

    public AccountInfo parseAccountInfo(String html) {

        return null;
    }
}
